package com.wtwd.campus.dao;

import com.wtwd.campus.entity.DeviceSOSList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ljiong
 * @date 2021/07/20
 * @description
 */
@Mapper
public interface SosCallMapper  {

    Integer bathDelSosCallByDeviceIdAndSequence(@Param("deviceId") Integer deviceId, @Param("list") ArrayList<Integer> delSequence);

    Integer updateSosCallByDeviceIdAndSequence(@Param("list") ArrayList<DeviceSOSList> updateSosList);


    Integer bathAddDeviceSosCall(@Param("list") List<DeviceSOSList> bathAddDeviceSos);

    DeviceSOSList getSosCallByDeviceIdAndSequence(@Param("deviceId") Integer deviceId,@Param("sequence") Integer sequence);

    Integer bathUpdateDeviceSosCallStateAndCommandNumber(@Param("list") ArrayList<DeviceSOSList> bathUpdateDeviceSos,@Param("status") Integer status,@Param("commandNumber") String commandNumber);

    List<DeviceSOSList> getSosCallService(@Param("deviceId") Integer deviceId);

    Integer deletePhoneByDeviceId(@Param("deviceId") Integer deviceId);
}
